/******************************************************************************
 * Copyright (C) 2024 EternalChip, Inc.(Gmbh) or its affiliates.
 *
 * All Rights Reserved.
 *
 * @file bsp_key.h
 *
 * @par dependencies
 * - stdio.h
 * - stdint.h
 *
 * @author BOAT | EternalChip 立芯嵌入式
 *
 * @brief Provide the HAL APIs of Key and corresponding options.
 *
 * Processing flow:
 *
 * call directly.
 *
 * @version V1.0 2024-11-17
 *
 * @note 1 tab == 4 spaces!
 *
 *****************************************************************************/

#ifndef INC_09_KEY_LED_BSP_KEY_H
#define INC_09_KEY_LED_BSP_KEY_H

#include "cmsis_os.h"
#include "main.h"
#include "FreeRTOS.h"

typedef enum {
    KEY_PRESS = 0,
    KEY_RELEASE
}key_status_t;

key_status_t Key_Scan(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin);

#endif //INC_09_KEY_LED_BSP_KEY_H
